@w: 80px;
@h: 26px;
@bw: (@h - 4) / 2;
@left-bg-color: #5393C5;
@left-font-color: #FFFFFF;
@right-bg-color: #D0D0D0;
@right-font-color: #222222;
@asset-border-color: #CCCCCC;

// 
// body{
  // font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
// }

.switch-wrapper{
  .clearfix();
  .border-radius(0.5em);
  .user-select(none);
  position:relative;
  border:1px solid @asset-border-color;
  width: @w;
  height:@h;
  padding:0px;
  overflow:hidden;
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  font-size: @h / 2;
  margin: 0 5px;
  > .opt{
    .border-radius(0.5em);
    float:left;

    height: 100%;
    line-height:2;    
    &.left{      
      #gradient > .vertical(@left-bg-color, lighten(@left-bg-color, 25%));
      color: @left-font-color;     
    }
      
    &.right{
      text-align: right;
      #gradient > .vertical(@right-bg-color, lighten(@right-bg-color, 25%));
      color: @right-font-color;
    } 
  }
  > .bar{
    width:@bw;
    position: absolute;
    .border-radius(0.5em);
    border:1px solid @asset-border-color;
    #gradient > .vertical(white, #F1F1F1 );
    top:2px;
    right:2px;
    //left:@w - 2 - @h/2;
    bottom:2px;
    .box-shadow(0px 1px 4px darken(@asset-border-color, 20%)); 

  }
  &:hover > .bar{
      #gradient > .vertical(#F1F1F1, #C1C1C1);
  }
  
  > .helper{
    display: none;
  }
}

.search-box{
  position: relative;
  display: block;
  padding: 0px;
  margin: 0px;
  // border: 1px solid black;
  .user-select(none);
  
  > .switch, > .input-prepend{
    float: left;
    display: block;
    margin-bottom:0px;
    position: relative;
  }
  > .input-prepend > input{
    width:180px;   
  }
  > .add-option{
    float: left;
    // margin-right: 10px;
    
  }
  button{
    margin-left: 10px;
  }
  
  .sticky{
    position:absolute;
    right: 6px;
    top: 2px;
    z-index: 100;
  }
  .opt-view-port{

    > div{
      float: left;
      vertical-align: middle;
      padding-top: 0px;
    }
    .combo{
      padding-top:1px;
      margin: 0 2px;
      > select{
        width: 160px;
      }      
    }
  }


}
.combo-box{
  & + div.chzn-container .chzn-results li em {
    background: @left-bg-color;
    font-style: normal;
    font-weight: bold;
    font-size : 110%;
    color: white;
  }
}

.panel-body {
  .container-fixed();

  > .search-box{
    
    display: block;
    margin: 10px;
    float: left;
    > *{
       clear:both;
       margin-top: 5px;
    }
    .switch{
      float: left;
    }
    .switch-wrapper{
      margin-left: 0px;
      margin-right: 0px;
    }
    .add-option{
      // display: none;
      float: right;
      // the chosen has 2px margin right with each other.
      margin-right: -2px; 
    }
    > button{
      float: right;
    }    
  }
}

@ltri-width: 12px;

.type-selector{  
    float:left;
    // margin-left:@ltri-width; 
  > span{
    float: left;
    
    > *{
      float:left;
    }
  } 
  .typesel-body{
    .box-shadow(2px 1px 3px darken(@left-bg-color, 20%));
    #gradient > .horizontal(@left-bg-color, lighten(@left-bg-color, 25%));
  }
  .ltri{
    .ltr(@ltri-width, @left-bg-color);
    z-index: 100;
    // margin-left:-@ltri-width;
  }
  .close{
    // display:none;
  }
  i{
    vertical-align: middle;
    margin: 5px;
  }  
  ul {
    font-family: Arial, Verdana;
    font-size: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  ul li {
    position: relative;
    ul{
      display: none;
    }

    h4{
      display: inline;
      text-decoration: none;
      color: #ffffff;
      padding: 1px 10px;
      margin-left: 1px;
      margin-top: 3px;
      white-space: nowrap;
      vertical-align: middle; 
      cursor: default;
      font-size: 11px;    
    }
    > span{
      display: block;
      position: relative;
      top: 2px;
      h4{
        padding: 0 3px;
        margin-top: 0;  
      }
      
    }
    b{
      .btr(4px,#eee);
      margin-right:5px;
    }
    
    &.enable-hover:hover{ 
      ul, .close {
        display: block;
        position: absolute;
      }
      
      ul li {
        background: @left-bg-color;
        color: black;
        float: none;
        margin-top: 3px;
         .box-shadow(1px 1px 2px darken(@left-bg-color, 20%));
        
        &.selected{
            background: pink;
        }
      }
      
      b {
        .ttri(4px,#eee);
      }
      ul li:hover {
        background: #95A9B1;
        
      } 
                 
    }

  }  
}

.tips-menu.dropdown-menu{

  // display: block;
  position: absolute;
  width: 100%;
  margin-top: 4px;
  z-index:10000;
  li.menu-item {
    margin: 1px 0;
    height: 26px;
  }
  .item-wrapper{
    text-decoration: none;
    display: inline-block;
    .ie7-inline-block();
    width: 100%;
    .clearfix();
    
    padding: 1px 2px;
    &.selected{
      // background: #FFFFD0;
      #gradient > .horizontal(@linkColor, lighten(@left-bg-color, 60%));
      // font-weight: bold;
      color:#fe3;
    }
  }
  .tip-val{
    float: left;
    margin-left: 15px;
    margin-right:15px;
    font-size: 14px; 
  }
  .type-wrapper{
    float: right;
  }
  li.divider{
    margin:1px;
    &:first-child{
    display: none;
  }
  }
}

